#ifndef DISK_H
#define DISK_H

#include "cmpdef.h"

#include "globaltypes.h"
#include "fstypes.h"

#ifdef CMP_LINUX
#include <fcntl.h>
#include <unistd.h>
typedef int FILEDESCRIPTOR;
#endif

#ifdef CMP_WINDOWS
typedef void* FILEDESCRIPTOR;
#endif

using namespace std;

namespace ntfs {

class CDisk
{
public:
    CDisk(const tstring& fileName);
    ~CDisk();
    void read(void* buf, UINT32 bufSize, UINT64 offset = 0) const;
private:
    FILEDESCRIPTOR mFileDesc;
    tstring mFileName;
};

}  //  namespace ntfs {

#endif // DISK_H
